"""
图像相加
"""
import cv2

lena = cv2.imread('../data/lena.jpg',0)
lily = cv2.imread('../data/lily_square.png',0)

dst1 = cv2.add(lena,lily)
cv2.imshow('dst1',dst1)

dst2 = cv2.addWeighted(lena,0.8,lily,0.2,50) # 0亮度调节量,为正更亮，为负变暗
cv2.imshow('dst2',dst2)

cv2.waitKey()
cv2.destroyAllWindows()